package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.common.model.response.address.AddressResponse;
import com.ytjj.qmyx.supplychain.mapper.entity.YxAreasNew;
import com.ytjj.qmyx.supplychain.mapper.entity.YxCitiesNew;
import com.ytjj.qmyx.supplychain.mapper.entity.YxProvincesNew;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface AreasNewMapper extends Mapper<YxAreasNew> {

    YxAreasNew queryAreaByCode(@Param("code") String code);

    List<YxAreasNew> queryAreaByCityCode(@Param("code") String code);

    YxCitiesNew queryCityByCode(@Param("code") String code);

    YxProvincesNew queryProvinceByCode(@Param("code") String code);

    AddressResponse queryAddressByNationalCode(@Param("nationalCode") Integer nationalCode);

    AddressResponse queryAddressByNationalCityCode(@Param("nationalCode") Integer nationalCode);
}
